<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
            
        }
        body{
            min-width: 1170px;
            width: 100%;
        }
        #box {
           margin: 10px auto;
            width: 1170px;
            height: 400px;
        }

        .box1 {
            width: calc(25% - 30px);
            position: relative;
            min-height: 1px;
            padding-right: 15px;
            padding-left: 15px;
            float: left;
        }

        .box2 {
            margin-bottom: 20px;
            line-height: 1.42857143;
            background-color: #fff;
            border: 1px solid #ddd;
            display: block;
            padding: 0;
            border-radius: 0;
            min-height: 380px;
            height: 380px;
            overflow: hidden;
            transition: border .2s ease-in-out;
        }

        ._imgs {
            width: 100%;
            margin-right: auto;
            margin-left: auto;
            display: block;
            max-width: 100%;
            height: 231px;
            vertical-align: middle;
            border: 0;
        }

        .box3 {
            padding: 9px;
            color: #333;
        }

        ._h4 {
            font-weight: 600;
            text-align: center;
            font-size: 18px;
            margin-top: 10px;
            margin-bottom: 10px;
            font-family: inherit;
            line-height: 1.1;
            color: inherit;
        }

        ._p {
            margin-top: 10px;
            padding: 0 5px;
            color: #666;
            margin: 0 0 10px;
        }
    </style>
</head>

<body>
    <div id="box"></div>
    <script>
        var data = [{
                "imgs": "http://www.etcp.cn/static/images/contacts1.png",
                "title": "市场合作",
                "body": "采访邀约、媒体合作、会务合作、战略合作、品牌合作。"
            },
            {
                "imgs": "http://www.etcp.cn/static/images/contacts2.png",
                "title": "商务合作",
                "body": "新媒体推广、营销活动、E米商城、停车功能、金融、车后服、生活平台、场景服务等商务战略合作。"
            }, {
                "imgs": "http://www.etcp.cn/static/images/contacts3.png",
                "title": "市场合作",
                "body": "智慧城市（社区、商业、医院智慧化）升级改造、广告投放、汽车分时租赁、汽车品牌、地图数据、停车券兑换采购合作。"
            }, {
                "imgs": "http://www.etcp.cn/static/images/contacts4.png",
                "title": "投诉邮箱",
                "body": "如您有任何需要向高管反馈的问题，请发送邮件至vip@etcp.cn我们会第一时间处理您的投诉和建议。"
            }
        ]

        var box = document.getElementById("box");
        for (var i = 0; i < data.length; i++) {
            box.appendChild(a(data[i]));
        }

        function a(x) {
            var box1 = document.createElement("div");
            var box2 = document.createElement("div");
            var box3 = document.createElement("div");
            var _h4 = document.createElement("h4");
            var _p = document.createElement("p");
            var _imgs = document.createElement("img");
            _imgs.src = x.imgs;
            _h4.innerHTML = x.title;
            _p.innerHTML = x.body;
            box1.className="box1"
            box2.className="box2"
            box3.className="box3"
            _imgs.className="_imgs"
            _h4.className="_h4"
            _p.className="_p"
            box1.appendChild(box2);
            box2.appendChild(_imgs);
            box2.appendChild(box3);
            box3.appendChild(_h4);
            box3.appendChild(_p);
            return box1;
        }
    </script>
</body>

</html>